home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14092 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: nntp.teleport.com!usenet
  2. From: GHouck <hksys@teleport.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help on:Printing to Printer from within c / c++ program
  5. Date: 11 Apr 1996 20:38:07 GMT
  6. Organization: systems hk
  7. Message-ID: <4kjqjf$3g5@nadine.teleport.com>
  8. References: <316a58d0.5945808@nntp.ix.netcom.com>
  9. NNTP-Posting-Host: ip-pdx09-42.teleport.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
  14.  
  15. cmalinow@ix.netcom.com (Chris Malinowski) wrote:
  16. >Newbie requires help.
  17. >Trying to read in a seq file from disk, and print on the printer.
  18. >OPEN of input file works ok, but am having difficulty opening the
  19. >output file as the printer device.
  20. >System is Dos/ Windows 3.1
  21. >Borland c++ 3.1
  22. >Redirect is out of the question, must perform the file open from
  23. >withing the progam.
  24. >
  25. Chris,
  26.  
  27. Since you're using DOS/Windows, you should be able to fopen and
  28. fprintf to the device called 'PRN' or 'LPT1,2,...'  If I remember
  29. correctly, there is also a standard device called 'stdprn', analogous
  30. to the streams for 'stdin', 'stdout', 'stderr' .  Perhaps not.
  31. Yours, Geoff Houck
  32.  
  33.